package cn.zl.rtsp.response.core;

import cn.zl.rtsp.response.RTSPResponse;
import io.netty.channel.ChannelHandlerContext;
import io.netty.handler.codec.http.DefaultHttpRequest;

public class TeardownRTSPResponse extends RTSPResponse {

    public TeardownRTSPResponse(ChannelHandlerContext context, DefaultHttpRequest request) {
        super(context, request);
    }

    @Override
    protected void write(StringBuilder builder) {
        builder.append("Session: ").append(session.getId()).append(R_N);
        builder.append("Connection: close").append(R_N);
    }
}
